package zn.io.fastframe.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import zn.io.fastframe.modules.sys.entity.SysCaptchaEntity;

import java.awt.image.BufferedImage;

@Service
public interface SysCaptchaService extends IService<SysCaptchaEntity> {

    /**
     * 获取验证码图片
     * @param uuid
     * @return
     */
    BufferedImage getCaptcha(String uuid);

    /**
     * 验证验证码
     * @param uuid
     * @param code
     * @return
     */
    boolean validate(String uuid, String code);
}
